package java20241112;

public class Per {
    public String name;
   public String gender;
    public int age;

    public Per(String name,String gender,int age){
        this.name = name;
        this.gender=gender;
        this.age=age;
    }
public String toString(){
        return "["+name+","+age+"]";//对象的打印
}
    public static void main(String[] args) {
        Per person = new Per("ahnmeimei","女",18);
        System.out.println(person);
    }
}
